ANativeWindow_setBuffersGeometry

Change the format and size of the window buffers.

The width and height control the number of pixels in the buffers, not the dimensions of the window on screen. If these are different than the window's physical size, then its buffer will be scaled to match that size when compositing it to the screen. The width and height must be either both zero or both non-zero.

For all of these parameters, if 0 is supplied then the window's base value will come back in force.

\param width width of the buffers in pixels. \param height height of the buffers in pixels. \param format one of the AHardwareBuffer_Format constants. \return 0 for success, or a negative value on error.

extern (C) nothrow @nogc
int
ANativeWindow_setBuffersGeometry
(
ANativeWindow* window
,
int width
,
int height
,
int format
)

Meta